# Use the git-based Specs repo instead of the trunk CDN. The jsdelivr-backed CDN
# intermittently fails podspec downloads with "Error in the HTTP2 framing layer"
# (cocoapods-core hardcodes HTTP/2 in cdn_source.rb; still open upstream:
# https://github.com/CocoaPods/CocoaPods/issues/12679). The git source clones
# over git and avoids the CDN/HTTP2 path entirely.
#source 'https://cdn.cocoapods.org/'
source 'https://github.com/CocoaPods/Specs.git'

# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'

def commonPods
  pod 'Fingerprint-iOS', '~> 4.1'

  # ============================================================================
  # ADS SDKs - Google Mobile Ads and Mediation Networks
  # ============================================================================
  pod 'Google-Mobile-Ads-SDK', '13.3.0'
  pod 'GoogleMobileAdsMediationIronSource', '9.4.1.0.0'
  pod 'GoogleMobileAdsMediationFacebook', '6.21.1.0'
  pod 'GoogleMobileAdsMediationUnity', '4.18.1.0'
  pod 'GoogleMobileAdsMediationVungle', '7.7.2.0'
  pod 'GoogleMobileAdsMediationChartboost', '9.12.0.0'
  pod 'GoogleMobileAdsMediationFyber', '8.4.7.0'
  pod 'GoogleMobileAdsMediationInMobi', '11.2.0.0'
  pod 'GoogleMobileAdsMediationMintegral', '8.1.3.1'
  pod 'GoogleMobileAdsMediationPangle', '7.9.1.1.0'
  pod 'GoogleMobileAdsMediationMoloco', '4.6.1.1'
  pod 'GoogleMobileAdsMediationAppLovin', '13.6.2.0'

  pod 'AppLovinSDK', '13.6.2'
  pod 'AppLovinMediationGoogleAdManagerAdapter', '13.3.0.0'
  pod 'AppLovinMediationGoogleAdapter', '13.3.0.0'
  pod 'AppLovinMediationIronSourceAdapter', '9.4.1.0.0'
  pod 'AppLovinMediationUnityAdsAdapter', '4.18.1.0'
  pod 'AppLovinMediationVungleAdapter', '7.7.2.0'
  pod 'AppLovinMediationFacebookAdapter', '6.21.1.0'
  pod 'AppLovinMediationByteDanceAdapter', '7.9.1.1.0'
  pod 'AppLovinMediationFyberAdapter', '8.4.7.0'
  pod 'AppLovinMediationChartboostAdapter', '9.12.0.0'
  pod 'AppLovinMediationInMobiAdapter', '11.2.0.0'
  pod 'AppLovinMediationMintegralAdapter', '8.1.3.0.0'
  pod 'AppLovinMediationMolocoAdapter', '4.6.1.1'


  # ============================================================================
  # OTHER SDKs
  # ============================================================================
  # Facebook SDKs
  pod 'FBSDKCoreKit', '16.3.1'
  pod 'FBSDKLoginKit', '16.3.1'
  pod 'FBSDKShareKit', '16.3.1'
  pod 'FBSDKGamingServicesKit', '16.3.1'

  # Firebase SDKs
  pod 'Firebase/Analytics', '11.12.0'
  pod 'Firebase/AppCheck', '11.12.0'
  pod 'Firebase/DynamicLinks', '11.12.0'
  pod 'FirebasePerformance', '11.12.0'
  pod 'Firebase/RemoteConfig', '11.12.0'
  pod 'Firebase/Crashlytics', '11.12.0'

  # Analytics & Attribution
  pod 'Adjust', '5.0.0'
  pod "CleverTap-iOS-SDK", '7.1.1'
  pod 'Plotline', '4.2.6'

  # Audio & Communication
  # Note : Implementation of aogra is in axmolCommons, moving the agora pod to commons is pending
  pod 'AgoraAudio_iOS', '4.6.2', :subspecs => ['RtcBasic', 'AudioBeauty']

  # Custom SDKs
  pod 'SingularClient',
    :git => 'https://gitlab.superkinglabs.com/client/clientcommons.git',
    :tag => 'SingularClient-1.1.6'
end

# Pods for ludo-mobile
target 'Ludo' do
  use_frameworks!
  commonPods
end

target 'NotificationServiceLudo' do
  use_frameworks!
  pod "CTNotificationService"
  pod "CleverTap-iOS-SDK", '7.1.1'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # this should always match deployment target at the top
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
    end
  end
end